<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib
      uri="http://struts.apache.org/tags-html"
      prefix="html" %>
<%@ taglib
      uri="http://struts.apache.org/tags-bean"
      prefix="bean" %>
<%@ taglib
      uri="http://struts.apache.org/tags-logic"
      prefix="logic" %>



<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>More info</title>
</head>
<body>
	<label>Nome: </label><bean:write name="cv" property="nome"/>
	<br/>
	<label>Cognome: </label> <bean:write name="cv" property="cognome"/>
	<br/>
	<label>Sesso: </label><bean:write name="cv" property="sesso"/>
	<br/>
	<label>Et&agrave;: </label><bean:write name="cv" property="eta"/>
	<br/>
	<label>Download: </label><bean:write name="cv" property="file"/>
	
	<br/>
	<label>Data ultimo aggiornamento: </label><bean:write name="cv" property="dataCV"/>
	<br/>
	<label>Data di inserimento: </label><bean:write name="cv" property="dataInserimento"/>
	<br/>
	
	<br/>
	<br/>
	
	<b>Commenti</b>
	<ul>
	<logic:iterate id="commento" name="commenti">
		<li>
			<bean:write name="commento" property="testo"/>
			<br/>
			<label>Scritto da </label> <bean:write name="commento" property="autore"/>
			<label> in data </label> <bean:write name="commento" property="data"/>
		</li>
	</logic:iterate>
	</ul>
	
	
	<html:form action="/guest/InsertComment" method="GET">
	
	<input type="hidden" name="commento.id_cv" value="<bean:write name='cv' property='id' />" />
	<label for="commento_testo">commento</label>
	<html:textarea property="commento.testo" value="" styleId="commento_testo"></html:textarea>
	<html:submit>commenta</html:submit>
	
	</html:form>
			
</body>
</html>